package com.itczw;

import com.sun.javafx.scene.control.skin.VirtualFlow;
import jdk.nashorn.internal.ir.CallNode;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class MyListDemo {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();

        list.add("aaaa");
        list.add("bbbb");
        list.add("cccc");
        list.add("dddd");

        Iterator<String> it = list.iterator();
        while(it.hasNext()){
            String s = it.next();
            System.out.println(s);
        }
        /**
         *文档注释
         */

        System.out.println("-------------------------");
        for (String s : list) {
            System.out.println(s);
        }

        getItem(list);

        String sc = "czw";
        StringBuilder sb = new StringBuilder("czw");

        ArrayList<String> list1= new ArrayList<String>();
        list1.add("志文很帅帅");
        list1.add("志文很帅帅");
        list1.add("万千世界");
        for (String s : list1) {
            System.out.println(s);
        }


        System.out.println("测试二次体提交");

        System.out.println("MASTER主分支的提交测试");

        System.out.println("dev-test01测试分支提交代码新增");

    }

    private static void getItem(List<String> list) {
        list.add(0,"qqqqq");
    }
}
